package com.bwie.auth.remote;

import com.bwie.common.domain.SysUser;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("bwie-system")
public interface RemoteSysUser {
    /**
     * 根据用户名获取用户信息
     * @param username
     * @return
     */
    @GetMapping("selectOneByName/{username}")
    public Result<SysUser> selectOneByName(@PathVariable String username);
}
